package com.tsmti.business.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @Package：com.tsmti.business.entity
 * @Class：PimsSysFeePackage
 * @Description： TODO
 * @Author：king
 * @Date：Created in 2018/11/12 10:07
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "PIMS_SYS_FEE_PACKAGE")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class PimsSysFeePackage  extends BaseDataEntity<Long> {
    /**
     *主键
     */
    private Long id;
    /**
     *检查项目HIS ID
     */
    private String feeTestHisId;
    /**
     *检查项目名称
     */
    private String feePackageName;
    /**
     *价格
     */
    private Double packPrice;
    /**
     *使用次数
     */
    private Integer feeUseTimes;
    /**
     *对应病种IDS
     */
    private String pathologyIds;
    /**
     * 拼音码
     */
    private String pinyinCode;
    /**
     * 五笔码
     */
    private String wubiCode;
    /**
     * 英文
     */
    private String enCode;

    @Basic
    @Column(name = "PINYINCODE")
    public String getPinyinCode() {
        return pinyinCode;
    }

    public void setPinyinCode(String pinyinCode) {
        this.pinyinCode = pinyinCode;
    }

    @Basic
    @Column(name = "WUBICODE")
    public String getWubiCode() {
        return wubiCode;
    }

    public void setWubiCode(String wubiCode) {
        this.wubiCode = wubiCode;
    }

    @Basic
    @Column(name = "ENCODE")
    public String getEnCode() {
        return enCode;
    }

    public void setEnCode(String enCode) {
        this.enCode = enCode;
    }

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_SYS_FEE_PACKAGE")
    @SequenceGenerator(name = "SEQ_SYS_FEE_PACKAGE", sequenceName = "SEQ_SYS_FEE_PACKAGE", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "FEETESTHISID")
    public String getFeeTestHisId() {
        return feeTestHisId;
    }

    public void setFeeTestHisId(String feeTestHisId) {
        this.feeTestHisId = feeTestHisId;
    }

    @Basic
    @Column(name = "FEEPACKAGENAME")
    public String getFeePackageName() {
        return feePackageName;
    }

    public void setFeePackageName(String feePackageName) {
        this.feePackageName = feePackageName;
    }

    @Basic
    @Column(name = "PACKPRICE")
    public Double getPackPrice() {
        return packPrice;
    }

    public void setPackPrice(Double packPrice) {
        this.packPrice = packPrice;
    }

    @Basic
    @Column(name = "FEEUSETIMES")
    public Integer getFeeUseTimes() {
        return feeUseTimes;
    }

    public void setFeeUseTimes(Integer feeUseTimes) {
        this.feeUseTimes = feeUseTimes;
    }

    @Basic
    @Column(name = "PATHOLOGYIDS")
    public String getPathologyIds() {
        return pathologyIds;
    }

    public void setPathologyIds(String pathologyIds) {
        this.pathologyIds = pathologyIds;
    }
}
